import React, { Component } from "react";

class Children extends Component {
  constructor(props) {
    super()
  }
  render() {
    const { name, age, height } = this.props
    return (
      <div>
        <h2>
          子组件展示: {`${name} ${age} ${height}`}
        </h2>
      </div>
    )
  }
}

export default class App extends Component {
  render() {
    return (
      <div>
        <Children name="coderG" age={18} height="180cm"></Children>
      </div>
    )
  }
}